package cn.qihua.dao;

import java.util.List;

import org.hibernate.SessionFactory;

import cn.qihua.model.LogProduct;

public interface ILogProductDAO {

	// property constants
	public static final String NBID = "nbid";
	public static final String PRODUCT_ID = "productId";
	public static final String USER_ID = "userId";
	public static final String MEMO = "memo";
	public static final String IS_NEW = "isNew";

	public abstract void setSessionFactory(SessionFactory sessionFactory);

	public abstract void save(LogProduct transientInstance);

	public abstract void delete(LogProduct persistentInstance);

	public abstract LogProduct findById(java.lang.Integer id);

	public abstract List findByExample(LogProduct instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByNbid(Object nbid);

	public abstract List findByProductId(Object productId);

	public abstract List findByUserId(Object userId);

	public abstract List findByMemo(Object memo);

	public abstract List findByIsNew(Object isNew);

	public abstract List findAll();

	public abstract LogProduct merge(LogProduct detachedInstance);

	public abstract void attachDirty(LogProduct instance);

	public abstract void attachClean(LogProduct instance);

	public abstract Boolean update(LogProduct transientInstance);

}